package com.example.www;

import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.NativeLong;
import com.sun.jna.ptr.LongByReference;


public interface VISA32 extends Library {
    // VISA32 INSTANCE = (VISA32) Native.loadLibrary("VISA32",
    // VISA32.class);
        VISA32 INSTANCE = (VISA32) Native.loadLibrary(
                "C:\\WINDOWS\\System32\\visa32.dll", VISA32.class);

        long VI_NULL = 0;
        long VI_SUCCESS = 0;

        int viOpenDefaultRM(LongByReference session);

        int viOpen(NativeLong viSession, String rsrcName,
                          NativeLong accessMode, NativeLong timeout,
                          LongByReference session);

        int viClose(NativeLong vi);

        int viScanf(NativeLong vi, String readFmt, Object... args);

        int viPrintf(NativeLong vi, String writeFmt, Object... args);


}
